package org.alala.user.web.framework.servlet;


import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import org.springframework.web.context.WebApplicationContext;
import org.springframework.web.context.support.WebApplicationContextUtils;

/**
 * 启动后初始化
 * 
 * @author huojinguang
 */
public class UserServletContextListener implements ServletContextListener {

	@Override
	public void contextInitialized(ServletContextEvent sce) {
		ServletContext stx = sce.getServletContext();
		@SuppressWarnings("unused")
		WebApplicationContext context = WebApplicationContextUtils.getRequiredWebApplicationContext(stx);
		//context.getBean();
	}

	@Override
	public void contextDestroyed(ServletContextEvent sce) {

	}
}
